feat(bundler): disable Bun env autoloading in compiled binaries#168
feat(bundler): disable Bun env autoloading in compiled binaries#168zrosenbauer merged 4 commits intomainfrom
Conversation
…ed binaries Bun automatically loads .env and bunfig.toml when running compiled binaries, which conflicts with kidd's explicit auth dotenv strategy. - Always pass --no-compile-autoload-bunfig (not configurable) - Pass --no-compile-autoload-dotenv by default, opt-in via autoloadDotenv: true in kidd.config.ts compile options Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
🦋 Changeset detectedLatest commit: 4e72791 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Splits the autoloadDotenv test into two: one for when the option is not configured (defaults to false) and one for when it is explicitly set to false. Co-Authored-By: Claude <noreply@anthropic.com>
Merging this PR will not alter performance
Comparing Footnotes
|
Remove standalone Zod acceptance test — the field is already covered by the fully-populated config test case. Co-Authored-By: Claude <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a new compile option Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/config/src/types.ts`:
- Line 70: Mark the public interface property autoloadDotenv as readonly to
conform to the repository TypeScript standard; update the declaration of the
autoloadDotenv property in the public interface (the autoloadDotenv property in
packages/config/src/types.ts) to be readonly so the type becomes readonly
autoloadDotenv?: boolean, ensuring all public properties are immutable per the
coding-style guidance.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 325cfdf7-967f-470d-bf97-b20bc5ac6e6a
⛔ Files ignored due to path filters (1)
.changeset/disable-bun-env-autoloading.mdis excluded by!.changeset/**
📒 Files selected for processing (9)
packages/bundler/src/bundler.tspackages/bundler/src/compile/compile.test.tspackages/bundler/src/compile/compile.tspackages/bundler/src/types.tspackages/bundler/src/utils/resolve-config.test.tspackages/bundler/src/utils/resolve-config.tspackages/config/src/types.tspackages/config/src/utils/schema.test.tspackages/config/src/utils/schema.ts
Co-Authored-By: Claude <noreply@anthropic.com>
Summary
bunfig.tomlautoloading in compiled binaries (--no-compile-autoload-bunfig).envautoloading by default (--no-compile-autoload-dotenv), opt-in viaautoloadDotenv: truein compile config.envvars intoprocess.envbefore kidd's auth dotenv strategy runsTest plan
pnpm typecheckpassespnpm lintpasses (no new warnings)pnpm formatpassespnpm testpasses — 3 new compile tests, 2 new resolve-config tests, 1 new schema test